package org.apache.commons.pool2.proxy;

import java.lang.reflect.Method;
import net.sf.cglib.proxy.MethodInterceptor;
import net.sf.cglib.proxy.MethodProxy;
import org.apache.commons.pool2.UsageTracking;

/**
 * 类的描述
 *
 * @author ztkool
 * @version v
 */
class CglibProxyHandler<T> extends BaseProxyHandler<T> implements MethodInterceptor {

    CglibProxyHandler(T pooledObject, UsageTracking<T> usageTracking) {
        super(pooledObject, usageTracking);
    }

    @Override
    public Object intercept(Object object, Method method, Object[] args, MethodProxy methodProxy) throws Throwable {
        return this.doInvoke(method, args);
    }

}
